﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using RM.Entities;
using System.ServiceModel;
using System.Runtime.Serialization;

namespace RM.Web.Services
{
    [ServiceContract]
    public interface ITestService
    {
        [OperationContract(Name="Test_GetAll")]
        IList<Test> GetAll();

        [OperationContract(Name = "Test_GetAllBySearch")]
        IList<Test> GetAllBySearch(string searchString);

        [OperationContract(Name="Test_Save")]
        [ReferencePreservingDataContractFormat]
        void Save(Test test);

        [OperationContract(Name="Test_Update")]
        void Update(Test test);

        [OperationContract(Name = "Test_GetById")]
        Test GetById(int Id);
    }
}
